package org.ims.inv.service.base.impl;

import org.hibernate.criterion.DetachedCriteria;
import org.ims.inv.dao.base.DAOBase;
import org.ims.inv.service.base.ServiceBase;

import cn.trymore.core.model.ModelBase;
import cn.trymore.core.service.impl.ServiceGenericImpl;

/**
 * Base service definition.
 * 
 * @author Jeccy.Zhao
 *
 */
public class ServiceBaseImpl
extends ServiceGenericImpl<ModelBase> implements ServiceBase
{
	/**
	 * The base repository. 
	 */
	private DAOBase daoBase;
	
	public ServiceBaseImpl(DAOBase dao)
	{
		super(dao);
		
		this.daoBase = dao;
	}

	public DAOBase getDaoBase()
	{
		return daoBase;
	}

	public void setDaoBase(DAOBase daoBase)
	{
		this.daoBase = daoBase;
	}
	
	/*
	 * (non-Javadoc)
	 * @see cn.trymore.core.service.impl.ServiceGenericImpl#getCriterias(cn.trymore.core.model.ModelBase)
	 */
	@Override
	protected DetachedCriteria getCriterias(ModelBase domain)
	{
		// TODO Auto-generated method stub
		return null;
	}

}
